<?php

$services = [
    "AdminAuthService"
];

return [
    'enable' => [
        // 开启服务发现
        'discovery' => true,
        // 开启服务注册
        'register' => false,
    ],
    "consumers" => value(function () use($services) {
        $consumers = [];
        foreach ($services as $service){
            $consumers[] = [
                'name' => $service,
                'registry' => [
                    'protocol' => 'consul',
                    'address' => 'http://consul:8500',
                ],
            ];
        }
        return $consumers;
    }),
];